<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-3-25
 * Time: 15:51
 */

namespace frontend\controllers;


use common\models\Userr;
use frontend\wx\wxapi;
use yii\web\Controller;

class WxController extends Controller
{
    public function init()
    {
        //   parent::init();
//        //$this->a();
//        $wx = new wxapi();
//        $wx->getToken();

    }

    public function actionLink()
    {
        $wx = new wxapi();
        $wx->valid();

//        $wx->getMenu();
//        $wx->responseMsg();
    }
    public function actionTest()
    {
        $wx = new wxapi();
        //$wx->valid();
        $wx->getMenu();
        $wx->responseMsg();
    }


}